package com.woniu.util;

public enum ResponseCodeEnum {

    LOGIN_SUCCESS(200,"登录成功"),
    LOGIN_FIAL(2000,"用户名或密码错误"),
    NOT_LOGIN(2001,"未登录，请先登录"),
    NOT_AUTH(2002,"无此访问权限，请先联系管理员"),
    LOGINOUT(2003,"退出成功"),
    FAIL(300,"程序异常"),
    CODE_INVALID(400,"验证码失效"),
    NO_DATA(2004,"未选中数据"),
    ACCOUNT_NO(2005,"手机号未注册"),
    CODE_FAIL(2006,"验证码错误"),
    REGISTER_SUCCESS(200,"注册成功"),
    ACCOUNT_DISABLE(201,"此账号已禁用"),
    ;
    private Integer code;

    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ResponseCodeEnum() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
